const util = {
    isLogin() {
        return !!sessionStorage.getItem('user-info')
    },
    store: {
        set(key, obj) {
            sessionStorage.setItem(key, JSON.stringify(obj))
        },
        get(key) {
            return JSON.parse(sessionStorage.getItem(key))
        },
        del(key) {
            sessionStorage.removeItem(key)
        }
    }
}